package com.walala.dispatcher.global;

public class Constant {
	
	public static final String RPC_WEIGHT_REDIS_KEY = "rpc_server_weight";
	public static final String CONNECTOR_SERVER_INFO = "connector_server_info";
	public static final String LOGIC_SERVER_INFO = "logic_server_info";
	

	public static enum Rpc_Request_Type {
		Rpc_Report(0),
		Rpc_Pullout(1);
		public int value;
		private Rpc_Request_Type(int value) {
			this.value = value;
		}
	}
	
	/**
	 * 服务类型
	 */
	public static enum Server_Type {
		CONNECTOR(0),
		LOGIC(1),
		RPC(2);
		public int value;
		private Server_Type(int value) {
			this.value = value;
		}
	}

	public static enum Server_Status {
		OK(0),
		DOWN(1);
		public int value;
		private Server_Status(int value) {
			this.value = value;
		}
	}

}
